
import 'dart:io';
import 'package:url_launcher/link.dart';
import 'package:fluent_ui/fluent_ui.dart';

class MenuItemAction extends PaneItem {
  MenuItemAction({
    required Widget icon,
    required this.link,
    title,
    infoBadge,
    focusNode,
    autofocus = false,
  }) : super(
    icon: icon,
    title: title,
    infoBadge: infoBadge,
    focusNode: focusNode,
    autofocus: autofocus,
  );

  final String link;

  @override
  Widget build(
      BuildContext context,
      bool selected,
      VoidCallback? onPressed, {
        PaneDisplayMode? displayMode,
        bool showTextOnTop = true,
        bool? autofocus,
      }) {
    return Expander(
      header: const Text('This thext is in header'),
      content: const Text('This is the content'),
      direction: ExpanderDirection.down, // (optional). Defaults to ExpanderDirection.down
      initiallyExpanded: false, // (false). Defaults to false
    );
  }
}